package com.sneakxy.cloudbase.platform.bean;

import org.springframework.data.annotation.Id;

import com.sneakxy.mybatis.commons.annotations.Column;
import com.sneakxy.mybatis.commons.annotations.Table;
import com.sneakxy.mybatis.commons.orm.generation.GeneratedValue;
import com.sneakxy.mybatis.commons.orm.generation.GenerationType;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 自启动信息
 * @author 潜行的虚影
 * @see
 */
@Data
@Table("t_mb4j_launcher")
@EqualsAndHashCode(callSuper = false)
public class Launcher extends BaseEntity<String> implements TimeEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1419148628570951339L;

	/**
	 * 启动项ID
	 */
	@Id
	@Column("id")
	@GeneratedValue(strategy = GenerationType.UUID)
	private String id;

	/**
	 * 启动项名称
	 */
	@Column("name")
	private String name;

	/**
	 * 启动模块名
	 */
	@Column("module")
	private String module;

	/**
	 * 备注
	 */
	@Column("memo")
	private String memo;

	/**
	 * 是否开启
	 */
	@Column("enable")
	private Boolean enable;

	/**
	 * 用户是否可以手动控制开启
	 */
	@Column("manual")
	private Boolean manual;

	/**
	 * 排序
	 */
	@Column("sort")
	private Integer sort;

	/**
	 * 创建时间
	 */
	@Column("createtime")
	private String createtime;

	/**
	 * 更新时间
	 */
	@Column("updatetime")
	private String updatetime;
	
	public Boolean isLauncherEnable() {
		return enable;
	}
	
	public Boolean isLauncherManual() {
		return manual;
	}

}
